import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

Vue.config.productionTip = false;
import axios from "axios";
axios.defaults.baseURL = "http://www.liulongbin.top:3005";
//给请求设置一个基本路径 以后发送请求的时候自动拼接这个路径
Vue.prototype.$axios = axios;

import Vant from "vant";
import "vant/lib/index.css";
Vue.use(Vant);
//引入vant 的全部组件

import { Dialog, Toast } from "vant";
Vue.use(Dialog);
Vue.use(Toast);
//全局引入对话框

import { Lazyload } from "vant";
Vue.use(Lazyload);
//全局引入 v-lazy指令

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
